<{include file="Public/top.html"}>
</head>
</head>
<body>
<div id="warpper">
    <div class="content">
        <div class="location">积分统计</div>
        <div class="ui-tab">
            <ul>
                <li class="tab-item <{if $action eq pointOutPut}>selected<{/if}>"><a href="<{U('Analysis/pointOutPut')}>" onclick="LayerShow();">积分产出</a></li>
                <li class="tab-item last-item <{if $action eq pointConsume}>selected<{/if}>"><a href="<{U('Analysis/pointConsume')}>" onclick="LayerShow();">积分消耗</a></li>
            </ul>
        </div>
        <div class="filedSet" style="padding-bottom: 0;">
            <div class="search">
                <form action="" id="searchForm" method="get" class="ui-form reportForm">
                    <input name="m" type="hidden" value="<{$module}>">
                    <input name="c" type="hidden" value="<{$controller}>">
                    <input name="a" type="hidden" value="<{$action}>">

                    <input name="p" id="page" type="hidden" value="<{$page|default:1}>">
                    <input name="limit" id="limit" type="hidden" value="<{$limit|default:10}>">

                    <div class="ui-form-item inline-block">
                        <label class="ui-label">时间段</label>
                        <input type="text" name="startDate" id="startDate" class="ui-text startDate" readonly/>
                    </div>
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">—&nbsp;&nbsp;&nbsp;</label>
                        <input type="text" name="endDate" id="endDate" class="ui-text endDate" readonly/>
                    </div>
                    <div class="ui-form-item inline-block">
                        <button type="submit" class="ui-button" onclick="LayerShow();">查询</button>
                    </div>
                </form>
            </div>
        </div>

        <!--表格内容-->
        <div class="mainGrid">
            <table class="ui-table ui-body">
                <thead>
                <tr>
                    <th class="pct10">日期</th>
                    <th class="pct10">日消耗积分</th>
                    <th class="pct10">满员抽奖消耗</th>
                    <th class="pct10">定时抽奖消耗</th>
                    <th class="pct10">积分兑换消耗</th>
                    <th class="pct10">活动报名消耗</th>
                    <th class="pct10 last-col">消耗积分人数</th>
                </tr>
                </thead>
                <tbody>
                <{if $obj}>
                    <{foreach from=$obj item=item}>
                        <tr>
                            <td><{$item.addTime|date_format:"%Y-%m-%d"}></td>
                            <td><{$item.dayConsumePoint|default:0}></td>
                            <td><{$item.fullLotteryConsumePoint|default:0}></td>
                            <td><{$item.fixLotteryConsumePoint|default:0}></td>
                            <td><{$item.pointMallConsumePoint|default:0}></td>
                            <td><{$item.applyEventConsumePoint|default:0}></td>
                            <td><{$item.consumeCount|default:0}></td>
                        </tr>
                    <{/foreach}>
                <{else}>
                    <tr><td colspan="7">暂无数据</td></tr>
                <{/if}>
                </tbody>
            </table>
        </div>
        <!--描述：分页-->
        <div class="pagination">
            <{include file="Public/page.html" }>
        </div>
        <div class="mainGrid">
            <table class="ui-table ui-body">
                <thead>
                <tr>
                    <th class="pct10"></th>
                    <th class="pct10">周期消耗积分</th>
                    <th class="pct10">满员抽奖消耗</th>
                    <th class="pct10">定时抽奖消耗</th>
                    <th class="pct10">积分兑换消耗</th>
                    <th class="pct10">活动报名消耗</th>
                    <th class="pct10 last-col">消耗积分人数</th>
                </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>总计</td>
                        <td><{$total[0].totalDayMinus|default:0}></td>
                        <td><{$total[0].totalFullMinus|default:0}></td>
                        <td><{$total[0].totalFixMinus|default:0}></td>
                        <td><{$total[0].totalExchangeMinus|default:0}></td>
                        <td><{$total[0].totalEventMinus|default:0}></td>
                        <td><{$totalCount|default:0}></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<{include file="Public/foot.html" }>
<script>
    datePickter('startDate','endDate',1);
</script>
</body>
</html>
